using System;
using System.Collections.Generic;
using System.Text;

namespace IGGCore
{
    public class SingleStat
    {
        private string m_name = "";

        public string Name
        {
            get { return m_name; }
            set { m_name = value; }
        }
        private string m_team = "";

        public string Team
        {
            get { return m_team; }
            set 
            { 
                switch (value)
                {
                    case "San Francisco":
                        m_team = "SF";
                        break;
                    case "San Diego":
                        m_team = "SD";
                        break;
                    case "St. Louis":
                        m_team = "StL";
                        break;
                    case "New York":
                        m_team = "NY";
                        break;
                    case "Los Angeles":
                        m_team = "LA";
                        break;
                    case "Kansas City":
                        m_team = "KC";
                        break;
                    case "Tampa Bay":
                        m_team = "TB";
                        break;
                    default:
                        if (value.Length > 3)
                        {
                            m_team = value.Substring(0, 3);
                        }
                        else
                        {
                            m_team = value;
                        }
                        break;
                }
            }
        }
        private string m_value = "";

        public string Value
        {
            get { return m_value; }
            set { m_value = value; }
        }
    }
}
